let mongodb = require("../server/config");
/*
* 待出售
* */

let Schema = mongodb.mongoose.Schema;

let marketSchema = new Schema({
  accountName: {type: String},  // 账号名字
  typeName: {type: String},   // 类型
  price: {type: Number},  // 价格
  userId: {type: String},  // 用户id
  percent: {type: Number},  // 利率
  days: {type: Number},   // 天数
  nowTime: {type: String}   // 创建时间
});

let marketModel = mongodb.mongoose.model("markets", marketSchema);

exports.marketList = marketModel;
